<?php
class DwModel extends Action{
	//test
	//
	//############test
	public function getmobydwnm($dwnm){
		$info=collectinfo(__METHOD__,'$dwnm',array($dwnm));
		
		$dw=M('dw');
		$dwo=$dw->where("dwnm='".$dwnm."'")->find();

		return createarrok('ok',$dwo,'',$info);
	}

	public function getmo($dwid){
		$info=collectinfo(__METHOD__,'$dwid',array($dwid));
		
		$dw=M('dw');
		$dwo=$dw->where('dwid='.$dwid)->find();

		return createarrok('ok',$dwo,'',$info);
	}
	
	

} 
?>